<!DOCTYPE HTML>
<html>
<head>
<include file="Public/head"/>
</head>
<body>
<!-- 头部 -->
<include file="Public/header"/>
<style>
.empty{text-align: center; color:#000;}    
</style>    
<!-- /头部 -->

<!-- 主体 -->
<div class="col-search">
<div class="container">
<div class="col-md-12 search search-bg search-li text-center">
<form id='form1' action="{:U('Search/likesearch')}" method='post'>
<button type="submit" class="search-btn"><i class="fa fa-search search-ico"></i></button>
<span class="search-font">搜索</span>
<input name="title" type="search" class="form-control search-input" placeholder="搜索你想要的樓盤">
<!--<p>
     <foreach name="hots" item="val">
        <a class='hots' href="javascript::">{$val['title']}</a>
      </foreach>    
</p>-->
</form>
</div>
<form id="form2" action="{:U('Search/tabsearch')}" method="post">
<div class="col-md-12">
<div class="dropdown col-md-3 col-sm-3 col-xs-3 rental-btn p-0">
<button id="dLabel" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="rental-title">所在地</span>
<span class="caret"></span>
</button>
<ul class="dropdown-menu rental-ico add" role="menu" aria-labelledby="dLabel">
<input id="adds" name="adds" type="hidden" value="">
<foreach name='search' item='val'>
<li>{$val}</li>
</foreach>
</ul>
</div>
<div class="dropdown col-md-3 col-sm-3 col-xs-3 rental-btn p-0">
<button id="dLabe2" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="rental-title"> 物業類型</span>
<span class="caret"></span>
</button>
<ul class="dropdown-menu rental-ico type" role="menu" aria-labelledby="dLabe2">
<input id="house_type" name="house_type" type="hidden" value="">
<foreach name='search2' item='val'>
<li>{$val}</li>
</foreach>
</ul>
</div>
<div class="dropdown col-md-3 col-sm-3 col-xs-3 rental-btn p-0">
<button id="dLabe3" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">

<span class="rental-title"> 出租/出售</span>
<span class="caret"></span>
</button>
<ul class="dropdown-menu rental-ico sell" role="menu" aria-labelledby="dLabe3">
<input id="selltype" name="selltype" type="hidden" value="3">
<li data-id="2">出租</li>
<li data-id="1">出售</li>
</ul>
</div>
<div class="dropdown col-md-3 col-sm-3 col-xs-3 rental-btn p-0">
<button id="dLabe4" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">

<span class="rental-title"> 價格範圍</span>
<span class="caret"></span>
</button>
<ul class="dropdown-menu rental-ico prices" role="menu" aria-labelledby="dLabe4">
<input id="prices" name="prices" type="hidden" value="0-99999999">
<foreach name='search3' item='val'>
<li>{$val[0]}-{$val[1]}</li>
</foreach>
</ul>
</div>
</div>
</form>
<div id="json">    
<volist name="data" id="val" empty="$empty">
<div class="col-md-12 col-sm-12 col-xs-12">   
<div class="col-md-4 col-sm-4 p-0 h-301 p-l-i c-e-i">
<a href="{:U('Search/detail','id='.$val['id'])}"><img src="__ROOT__{$val['pic']|get_cover='path'}"></a>
</div>
<div class="col-md-8 col-sm-8 h-301 market-bg">
<div class="market-title">
<div class="col-md-6 col-sm-6 col-xs-7 p-0">
<h3><a href="{:U('Search/detail','id='.$val['id'])}">{$val['title']}</a>
<span>
<if condition="$val['selltype'] eq 0">
出售
<else/>
出租
</if>
</span>
</h3>
</div>
<div class="col-md-6 col-sm-6 col-xs-5 text-right title-right">{$val['unit_price']}{$val['prices2']}</div>
</div>
<p>{$val['description']}
</p>
<p class="col-md-8 col-xs-8 p-0 area">
面積：<span>{$val['area']}{$val['unit_area']}</span>
</p>
<p class="col-md-8 col-xs-8 p-0 area">
房型：<span>{$val['shi']}</span>室<span>{$val['ting']}</span>廳<span>{$val['wei']}</span>衛
</p>
<div class="col-md-4 col-xs-4 p-0">

</div>
</div>
</div>
</volist>

</div>

<div class="page col-md-12 col-sm-12 col-xs-12 text-center" style='color: #000'>{$page}</div>
</div>
</div>

<!--聯繫我們-->
	<include file="Public/message"/>
<!--/聯繫我們-->
<!-- /主体 -->
<!-- footer-->
<include file="Public/footer"/>
<!--/footer-->
<script src="__PUBLIC__/Index/js/jquery.cookie.js" type="text/javascript"></script>
<script src="__PUBLIC__/Index/js/tab.js" type="text/javascript"></script>
<script>
     $('.col-nav li').removeClass('active');
     $('.col-nav li:eq(3)').addClass('active');
     $('.nav-btn span').text('樓盤信息');
 $('.hots').click(function(){
     $('.search-input').attr('value',$(this).html());
     $('#form1').submit();
 })     
</script>    
</body>
</html>